﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 存在数据类型
    /// </summary>
    [Flags]
    public enum isValue
    {
        /// <summary>
        /// 没有数据
        /// </summary>
        None = 0,
        /// <summary>
        /// 存在用户数据
        /// </summary>
        User = 1,
        /// <summary>
        /// 存在话题数据
        /// </summary>
        Topic = 2,
        /// <summary>
        /// 存在问题数据
        /// </summary>
        Question = 4,
        /// <summary>
        /// 存在回答数据
        /// </summary>
        Answer = 8,
        /// <summary>
        /// 存在收藏数据
        /// </summary>
        Favorite = 0x10,
        /// <summary>
        /// 存在OJ问题数据
        /// </summary>
        Problem = 0x20,
        /// <summary>
        /// 存在勋章数据
        /// </summary>
        Medal = 0x40,
        /// <summary>
        /// OJ测试提交
        /// </summary>
        Judge = 0x80,
        /// <summary>
        /// 比赛
        /// </summary>
        Contest = 0x100,
        /// <summary>
        /// 教程
        /// </summary>
        Tutorial = 0x200,
        /// <summary>
        /// 考试
        /// </summary>
        Exam = 0x400,

        /// <summary>
        /// 存在创建用户数据
        /// </summary>
        Creator = 0x10000,
        /// <summary>
        /// 存在关联用户数据
        /// </summary>
        LinkUser = 0x20000,
        /// <summary>
        /// 存在关联话题数据
        /// </summary>
        LinkTopic = 0x40000,
        /// <summary>
        /// 存在关联问题数据
        /// </summary>
        LinkQuestion = 0x80000,
        /// <summary>
        /// 存在关联收藏数据
        /// </summary>
        LinkFavorite = 0x100000,

        /// <summary>
        /// 存在问题评论数据
        /// </summary>
        QuestionComment = 0x1000000,
        /// <summary>
        /// 存在回答评论数据
        /// </summary>
        AnswerComment = 0x2000000,
        /// <summary>
        /// 存在收藏评论数据
        /// </summary>
        FavoriteComment = 0x4000000,
        /// <summary>
        /// 存在提交代码评论数据
        /// </summary>
        JudgeComment = 0x8000000,
    }
}
